package com.aaa.dao;

import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

public interface T_CpDao {
    @Select("<script> SELECT name,SHtime,kscore  from regist  where 1=1  <if test=\"name!=null and name!=''\"> and name like concat('%',#{name},'%')</if> and state=1 limit #{start},#{pageSize} </script>")
    List<Map> getlist(Map map);
    @Select("<script> select count(id) from regist where state=1  <if test=\"name!=null and name!=''\"> and name= #{name} </if>  limit #{start},#{pageSize}</script>")
    Integer Count(Map map);
}
